package org.example.shop.dao;

import org.example.shop.pojo.Goods;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface GoodsSearchDao extends ElasticsearchRepository<Goods, Integer> {
    List<Goods> findByTitle(String title);
    Page<Goods> findByTitle(String title, Pageable pageable);
}
